Component({
  /**
   * 组件的属性列表
   */
  properties: {
    projectList: {
      value: [],
      type: Array
    },
    bodyType: {
      value: [],
      type: String
    }
  },
  methods: {
    showContent(e) {
      let {index, show} = e.currentTarget.dataset
      this.data.projectList.forEach(item => {
        item.isShow = false
      })
      this.data.projectList[index].isShow = !show
      this.setData({
        projectList: this.data.projectList
      })
    }
  }
})
